<template>
	<view class="content">
		<view class="zonghegedan">
			<view class="zonghegedantitle">
				专辑
			</view>
			<view class="Integrated-album" v-for="(item,index) in albums" :key="item.id">
				<view class="albumImg">
					<image :src="item.blurPicUrl"></image>
				</view>
				<view class="album-text">
					<view class="album-author">
						<text>{{item.name}}</text>
						<text style="color: #969696;" v-if="item.alias.length !== 0">({{item.alias[0]}})</text>
					</view>
					<view>
						<text style="color: #537982;font-size: 20rpx;">{{item.artists[0].name}}</text>
						<text style="margin-left: 10rpx;font-size: 20rpx;">{{item.publishTime | formatStr}}</text>
					</view>
					<view class="albumIcon">
						<image src="../../static/Major-icon/diantai.png" mode=""></image>
						<text style="font-size: 21rpx;color:#9B9A98;">数字专辑销售中</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import moment from 'moment'
	export default {
		data() {
			return {

			}
		},
		props: ['albums'],
		filters: {
			formatStr(value) {
				return moment(value).format('YYYY-MM-DD');
			},
		}
	}
</script>


<style scoped lang="scss">
	.Integrated-album {
		background-color: #fff;
		display: flex;
		align-items: center;
		padding: 20rpx 30rpx;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;

		.albumImg {
			image {
				width: 100rpx;
				height: 100rpx;
				border-radius: 5px;
				display: flex;
				align-items: center;
			}
		}

		.album-text {
			display: flex;
			flex-direction: column;
			margin-left: 10px;

			.albumIcon {
				display: flex;
				align-items: center;

				image {
					width: 30rpx;
					height: 30rpx;
				}
			}
		}
	}

	.zonghegedan {
		display: flex;
		flex-direction: column;
		padding: 30rpx 0 0 0;
		box-sizing: border-box;
		border-bottom: 1px solid #E5E5E5;

		.zonghegedantitle {
			border-top-left-radius: 10px;
			border-top-right-radius: 10px;
			background-color: #fff;
			padding: 30rpx;
			font-weight: 600;
			font-size: 17px;
		}

		.zonghe-gedancotent {
			padding: 10rpx 30rpx;
			background-color: #fff;
			display: flex;

			image {
				width: 100rpx;
				height: 100rpx;
				border-radius: 10px;
			}

			>view {
				display: flex;
				flex-direction: column;
				margin-left: 20rpx;
				justify-content: center;
			}
		}
	}
</style>
